package edu.pku.sei.transformation.editor.model.goal;

import edu.pku.sei.transformation.editor.model.Relationship;

public class GoalRelationship extends Relationship {
	private int type = 0;

	public static final int TYPE_INCLUDE = 0;
	public static final int TYPE_DEPEND = 1;
	
	public int getType() {
		return type;
	}
	
	public void setType(int type) {
		this.type = type;
	}

	public TransformationGoal getSourceGoal() {
		return (TransformationGoal) sourceElement;
	}
	
	public TransformationGoal getTargetGoal() {
		return (TransformationGoal) targetElement;
	}
	
	public void setSourceGoal(TransformationGoal goal) { 
		this.sourceElement = goal;
	}
	
	public void setTargetGoal(TransformationGoal goal) {
		this.targetElement = goal;
	}
}
